﻿using System;
using System.Collections.Generic;

using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Module.Core.BusinessLogic.CmsContents;
using Module.Core.Common;
using Module.Core.EntitiesInfo;
using Module.Core.LoginSystem.Commons.Framwork;
namespace Web.Cms.Content.Articles
{
    public partial class ArticlesView : AdminPage
    {
        #region KHai báo biến
        protected string title;
        protected string desc;
        protected string body;
        #endregion
        #region PageLoad
        protected void Page_Load(object sender, EventArgs e)
        {
            try
            {
                int contentId;
                if (Request.QueryString.Get("contentId") != "")
                {
                    contentId = ObjConvertUtility.ToInt32(Request.QueryString.Get("contentId"));
                }
                else
                {
                    contentId = 0;
                }
                if (contentId > 0)
                {
                    CMSContentsInfo info = CMSContentsBL.Select(contentId);
                    if (info != null)
                    {
                        title = info.Headline;
                        desc = info.Teaser;
                        body = info.Body;
                    }
                }
            }
            catch (Exception)
            {
            }
        }
        #endregion
    }
}